package com.woopsion.spring.wpcSpringTest.component;

import com.woopsion.spring.beans.Autowired;
import com.woopsion.spring.beans.Scope;
import com.woopsion.spring.processor.InitializingBean;
import com.woopsion.spring.stereotype.Repository;

/**
 * @author woopsion
 * @date 2025-05-30
 */
@Repository
@Scope("singleton")
public class Dog  implements InitializingBean {
    @Autowired
    public  DogDao dogDao;
    public void test(){
        dogDao.hi();
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println(this.getClass().getName() + "执行初始化方法中");
    }
    
    
}
